package cn.qihua.dao.impl;

import org.hibernate.Session;
import org.hibernate.SessionFactory;

import cn.qihua.dao.IBaseHibernateDAO;

/**
 * Data access object (DAO) for domain model
 * 
 * @author MyEclipse Persistence Tools
 */
public class BaseHibernateDAO implements IBaseHibernateDAO {
	private SessionFactory sessionFactory;

	@Override
	public void setSessionFactory(SessionFactory sessionFactory) {
		this.sessionFactory = sessionFactory;
	}
	@Override
	public Session getCurrentSession() {
		return sessionFactory.getCurrentSession();
	}
}